<!-- <template>
	<view class="loadingData" v-if="loading" capture-catch:touchmove="preventdefault">
		<image class="loadingDataimage" src="@/static/images/load.gif" mode="">
			<text class="loadingDatatext">数据加载中...</text>
		</image>
		
	</view>
</template> -->

<template>
	<view class="loading-box" v-if="loading">
		<view class="container">
			<view class="box">
				<view class="atom"></view>
				<view class="atom"></view>
				<view class="atom"></view>
				<div class="dot"></div>
			</view>
		</view>
	</view>
</template>


<script>
	export default {

		props: {
			loading: Boolean
		},
	}
</script>



<style lang="scss" scoped>
	.loading-box {
		position: fixed;
		height: 100vh;
		width: 100vh;
		background-color: #f6f6f6;
		top:0;
		left:0;
		overflow: hidden;
		z-index: 999999;
	}


	.container {
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.box {
		position: relative;
		width: 120rpx;
		height: 120rpx;
	}

	.dot {
		position: absolute;
		width: 10px;
		height: 10px;
		border-radius: 50%;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		background-color: #0396FF;
		animation: dotbreath 2s linear infinite;
	}

	.atom {
		position: absolute;
		width: 100%;
		height: 100%;
		border-radius: 50%;
		border-left-width: 6rpx;
		border-top-width: 6rpx;
		border-left-color: #0396FF;
		border-left-style: solid;
		border-top-style: solid;
		border-top-color: transparent;

	}

	.atom:nth-of-type(1) {
		left: 0%;
		top: 0%;
		animation: atom1 1s linear infinite;
	}

	.atom:nth-of-type(2) {
		right: 0%;
		top: 0%;
		animation: atom2 1s linear infinite;
	}

	.atom:nth-of-type(3) {
		right: 0%;
		bottom: 0%;
		animation: atom3 1s linear infinite;
	}

	@keyframes dotbreath {
		0% {
			opacity: 1;
		}

		50% {
			opacity: 0.5;
		}

		100% {
			opacity: 1;
		}
	}

	@keyframes atom1 {
		0% {
			transform: rotateZ(120deg) rotateX(66deg) rotateZ(0deg);
		}

		100% {
			transform: rotateZ(120deg) rotateX(66deg) rotateZ(360deg);
		}
	}

	@keyframes atom2 {
		0% {
			transform: rotateZ(240deg) rotateX(66deg) rotateZ(0deg);
		}

		100% {
			transform: rotateZ(240deg) rotateX(66deg) rotateZ(360deg);
		}
	}

	@keyframes atom3 {
		0% {
			transform: rotateZ(360deg) rotateX(66deg) rotateZ(0deg);
		}

		100% {
			transform: rotateZ(360deg) rotateX(66deg) rotateZ(360deg);
		}
	}
</style>





<!-- 
<style>
	.loadingData {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9999;
		background-color: #f8f8f8;
		overflow: hidden;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
	}
	.loadingDataimage{
		width: 150rpx;
		height: 150rpx;
	}
	.loadingDatatext{
		position: absolute;
		top:60%;
		font-size: 26rpx;
		color:#999999;
	}
</style>
 -->
